import request from '@/utils/request'

// 查询手术列表
export function listSurgery(query) {
  return request({
    url: '/system/surgery/list',
    method: 'get',
    params: query
  })
}

// 查询手术详细
export function getSurgery(id) {
  return request({
    url: '/system/surgery/' + id,
    method: 'get'
  })
}

// 新增手术
export function addSurgery(data) {
  return request({
    url: '/system/surgery',
    method: 'post',
    data: data
  })
}

// 修改手术
export function updateSurgery(data) {
  return request({
    url: '/system/surgery',
    method: 'put',
    data: data
  })
}

// 删除手术
export function delSurgery(id) {
  return request({
    url: '/system/surgery/' + id,
    method: 'delete'
  })
}
